﻿--[[
   @brief    web_register for all lua event register by js call.
   @author   harleyxwang
   @version  1.0
   @date     2016-03-05
--]]

plugin_forward =
{
    init = function()
        base_utility.log("plugin_forward.init called");    
    end;

    handle_plugin_response = function(cmd_str, json_str, game_id) 
        local response_param_tbl = {cmd = cmd_str, game_id = game_id, data = json_str};
        event_center.send_event(plugin_forward_event.response_event, response_param_tbl);
    end;

    handle_plugin_notify = function(event_name, json_str, game_id)
        local notify_param_tbl = {event_name = event_name, game_id = game_id, data = json_str};
        event_center.send_event(plugin_forward_event.notify_event, notify_param_tbl);
    end;
};

plugin_forward.init();
